STEP 13: Let's use a loop to create a list of expected values. All commands should go inside the loop you create.

We'll find the expected number of occurrences by multiplying theoretical probability by number of experiments.

  • In LOGIC, click on . Drag out Loop through List.
  • Change my_list to theor_prob.
  • Click on . Drag out Multiplication INSIDE your loop.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)